package com.micklebes.entity;

import com.google.appengine.api.datastore.Key;

import javax.jdo.annotations.*;


@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Storage {

    @PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Key key;

    @Persistent
    private String name;

    @Persistent
    private String address;

    public Storage() {
    }

    public Storage(String name, String address) {
        this.name = name;
        this.address = address;
    }

    public Storage(Key key, String name, String address) {
        this.key = key;
        this.name = name;
        this.address = address;
    }


    public Key getKey() {
        return key;
    }

    public void setKey(Key key) {
        this.key = key;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }
}